Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt db prefix enhancement for more integrations #3985

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

jjhesk
Copy link

@jjhesk jjhesk commented Feb 9, 2017

Description of changes

#3981
proposed changes.

Related issues (if any)

Testing

  • Please confirm npm run test-all ran successfully.

@@ -104,8 +113,11 @@ Keystone.prototype.prefixModel = function (key) {
if (modelPrefix) {
key = modelPrefix + '_' + key;
}

return require('mongoose/lib/utils').toCollectionName(key);
if (_.isObject(this.get('db opt'))) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This name doesn't seem descriptive enough for what it does

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants